fix the 500 error