Fixes for openwith and textreader