diff --git a/apps/app_voicemail2.c b/apps/app_voicemail2.c
index 7243e2da3ee6dd0685eee2910ff6dfee17ea7242..9ee29dfccaf751a5ba92e8b2a88e3f980e85ffe5 100755
--- a/apps/app_voicemail2.c
+++ b/apps/app_voicemail2.c
@@ -1476,7 +1476,7 @@ static int get_folder2(struct ast_channel *chan, char *fn, int start)
 	int res = 0;
 	res = play_and_wait(chan, fn);
 	while (((res < '0') || (res > '9')) &&
-			(res != '#') && (res > 0)) {
+			(res != '#') && (res >= 0)) {
 		res = get_folder(chan, 0);
 	}
 	return res;