Fix loss of fluid when fluid type in a pipe is changed on fill.