bugfix when used in another scene