Fixing state map theta esm.