avoid uncaught error when setting config state