fix bug while the element bean declaration manner in XML