fix the sliding crash when only right fragment declared