Fixed bug with drawing region