fix multiple loading issues