fixed some bugs with drawing