Fix for problem with newtonsoft json