Fixing a sequence id error in tables