fixed "scene" attribute of trigger

we want this.fn to be constructed below using fn
also removed dead code