changed 500 error