fixed issue with loading complete