Fix table generation bug and add a better comment to a TableHelper method.