Fixed arguments in assertion

This fixes #1008, where the arguments in the assertion were reversed.  This lead to error messages which didn't quite make sense (though a little humor helps).