fixed bug in State event with coding map