fix broken loading guard