fix refresh bug with reinitialize method