fix 500 eror