issue #2771:  fix a careless mistake