fix sync loading