fix loop load bug