Fixes

Fixed a syntax error, and also a potential issue with `Model.attributes` being undefined.