Fixed bug for py26