Fix range call (replace to xrange)