fixed showing fragment bug.