tryin to fix refresh issue