fixed wrong clearRect in TextField