fix errors when using with meteor 0.7.0.x