fix issue #1182 cont