fix onFile: call cb only if no case is suitable