Fixed the bug in applying opencontrail patches