fixed distinct on tags