Fix crash from race condition where objects is set but buttons are ready to be used