bug fix about first time load