Correcting a bug in the Wordpress plugin