Fix cursor not drawn correctly after resize