fixing drawing error