also fixed for offlinefragment