Handle corner cases.