Fixed invalid state while parsing block segments