Fixed an error with json contentType.