Fix breaking incompatibility with angular v.1.3.x