draw shape bug fix