Fixed bugs due to Meteor 0.8 upgrade