added debug for issue #1116