fixed error with angular loading