Fixed Angular JS issue