fixed bug regarding scene stack