Fix for sails-generate-api wrapper