Patches for check_insight [sf#933760] [#528]