fix bug get last id after insert