fix deviance comparison in devfun2