There was just a typo in your change.  -- you have  AM- instead of AMS-  ..
I'm going to pull this down to my laptop and test it for a bit then I'll commit it.