The tax office has admitted an error after using the wrong state pension figures to calculate the tax owed by some pensioners