fix drawing textboxes