Corrected maximum ID value