fix some drawing errors