fixed bug with popping backstack.