fixing issue #902

Not sure if it would break anything.