hope I've finally fixed this damn flip problem.