fix warnings in conversions