Vertical flip fix. Closes #3512