fixed resize bug of navigation after navigate back