fixed bug for when no available fragment is found