Fixed slight bug in COM table generation.