fixed decodeStage