fixed flipped coords