fixed #849

my fix for #822 had introduced this problem.  They should both be fixed now