fixing scope not refreshing