Patches for check_ink [sf#975510] [#586]