Fix clear loading in modal