some fix for work with sails 0.10