filter out errors not in open file