Use int when serialize bool