Solves https://github.com/balderdashy/sails/issues/638