fix compilation issue on windows
fix table id to display number from 1 to N instead of 0 to N