Fix fragment content bug due to change in orientation