center flag attrib from float to int