patch for newer version of angularjs