page refresh bug fixed