fix for https://github.com/balderdashy/sails/commit/58bfc02363f57d148edf0ebc0c401b8d17dcf812#commitcomment-5237606