fix bugs for beanutil