add a fixStateForNestedFragment function in KKFragment