You are completely correct, that was written too hastily. I'll fix the remainder check.