diff --git a/apps/app_queue.c b/apps/app_queue.c
index 1c8dea31a40cca70c5f6e7dfd6490a88d3a23615..883b3d6601aa6682a1c162247f8b59e331f45c50 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -1354,8 +1354,8 @@ static struct member *create_queue_member(const char *interface, const char *mem
 			ast_copy_string(cur->membername, interface, sizeof(cur->membername));
 		if (!strchr(cur->interface, '/'))
 			ast_log(LOG_WARNING, "No location at interface '%s'\n", interface);
-		if (!strncmp(state_interface, "hint:", 5)) {
-			char *tmp = ast_strdupa(state_interface), *context = tmp;
+		if (!strncmp(cur->state_interface, "hint:", 5)) {
+			char *tmp = ast_strdupa(cur->state_interface), *context = tmp;
 			char *exten = strsep(&context, "@") + 5;
 
 			ast_copy_string(cur->state_exten, exten, sizeof(cur->state_exten));