fixing ODE-998, thanks to Michael McEniry for the patch.