fixed on python2