fix reference not correct problem in first load page