fix state type