Fixed bug in add component popup menu.