Refix for #288 and do not stop on invalid reflines