Fixes 468

https://github.com/affiliatewp/AffiliateWP/issues/468