Fix implicit conversion of int