fix improper sequence
fix issue of request parsing