fixed custom tab bug