fixing user refresh