Changed if statement in refresh function