fixed minor refresh bug