Fixed drawing bugs.