Fix preview flipping