fix 500 error sometimes