Fix id mass assign