Bug fix for partial screen clearRect