fixes issue #2902