Fixed the issue with the bean invocation