Fixed scoping issue for function calls in OilQuantityConverter