Fixes invalid conversion