diff --git a/src/conio/bitmap_con.c b/src/conio/bitmap_con.c
index f841823a078ba8e9f6a1b1f9f115e4978d90b799..bc574a888d3435b9ddc7234d82471c557aff140d 100644
--- a/src/conio/bitmap_con.c
+++ b/src/conio/bitmap_con.c
@@ -1404,8 +1404,10 @@ bitmap_movetext_screen(int x, int y, int tox, int toy, int direction, int height
 			direction = -1;
 		height = vstat.rows - (height + (y - toy));
 		// If everything was moved, there's no lines to move back
-		if (height <= 0)
+		if (height <= 0) {
+			pthread_mutex_unlock(&screenlock);
 			return;
+		}
 		toy = vstat.rows - (height - 1);
 		y = toy - (height);
 	}