fix integer ambiguity