Fixed state commit bug.