fixed missing code for flip v/h