fix some bugs, make OFPT_VENDOR work