Fixed bug with api regarding preferred common names #WEB-4332