fixed bug for duplicate parent select boxes