Fixed invalid conversion error