Bugfix getting instance by selector functionality