fix draw errors