bugfix for python2.6