fix for angularjs flickering