fix problem with angular scopes