Fixed call to min to be compliant with Rpython