Fixing race condition for loading spinner