fix state definition