fix for vertical inverting