fix wp bug