fixes issue #1086

fixes issue #1086