Fix a bug where the cursor was fucked up after getting messages in console