reassignFragment fragment context fix and test issue #499