ensure to_i on refresh only