fix draw logic