prevent next if no next