bug fixed for Textarea.drawWithCache