fix warnings about implicit conversions