Fix error 400 bad request