Fixed a bug in angularjs version