fix: incompatible integer conversion