fixed some auto gen code