Fixed the null bug in sails_demo