fix async loading issue