correcting a bug in the BeansUtil class