fixed error concerning nested fragments