Thanks for catching this! I'll make sure I have unit tests to cover the different conditions.