bug fixes in BeanLoader class