Clear cursor buffer in the start