Hopefully fixed bug in python 2.6