You seen to have stumbled upon bug 15574 which was fixed in the main development branch. This fix has now been back ported to 2.6, therefore will be available with the next maintenance release of 2.6, in about a month.