Number ranges for citations breaks when editing citation template

I am editing the IEEE style.

The “use number ranges for consecutive citations” checkbox is checked, and usually works.

However, I want to edit the citation so that page ranges show.

I changed the In-Text Citation Template:

from

[Bibliography Number]

to

[Bibliography Number|, p.^pp. Cited Pages]

This works to show page numbers when they are supplied. Eg: [40, pp. 122-160, 41]

But then the number ranges for citations stops working!

[26, 49-63] 

becomes

[26, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63]

Am I doing something wrong or is this a bug?

Please help.

I am using EndNote X on Windows 7. 

Thank you,

Cliffe.