Fix infinite recursion on 32-bit machines