Fix code to work on meteor 0.7.1.2.