Fixed loading scope issue. Should have known better. Was trying to be clever