Fixed nullpointer and config mutations on init + commit.