fix first load bug