fix error 500 with post