Fix multiple id setting