fix format in state