Fixed an issue with a potential (but unusual) edge case.