These operations are very picky about the order of their arguments, with error messages that seem bogus or are non-sequiturs when the order is wrong. I keep running into this, cursing, and moving on with the task at hand, but I should sit down and make it more liberal in what it accepts!