fix ticket #972