Fix refesh script