fix bug with return max id value