attempt to fix ref #1186