fixing the compilation failure from the disposal