Fixing target attribut when className is used