Fixes multiple tab bug (issue #16)