fixed autowiring of created beans