fix regression due to angular 1.3 changes