fix to use json stringify/parse only on specific fields, the  state as a whole has to stay an object