Fix issue when fragment index is not avaible