fixed bug that causes number format error in angular 1.3.1