Fix fatal wordpress bug