Updated a small bug that appeared due to random key presses