Fixed Extra Generated Tabs

Fixed bug created by #63. See #69 for more details.