Fix comparing file scopes