change get the max record id

change get the max record id