fix invalid request