Resolving HTTP 500 errors.