update to fix 500 error