Fix bug during clear screen