Fixing to work in new meteor version