Tags check was inverse in event listener