fixed error on show beans and replace res