If you reach the last step after all parities are solved, and your middle layer is flipped, you can flip it with / (6, 0) / (6, 0) / (6, 0). If you're not sure what this looks like, or want a video, see this one. Other than that, though, you've got the right algorithm. You can do the parity algorithm you know.