Fixes HTTP to state machine