Fixed silly bug with loading status var scope