fixing refreshonly refresh bug