control drawing bug fix