fixing bug resolving default  bean in the implementation of