fixed Integer#pow(0) going in an infinite loop