hopefully fixed 500 error