Fixed bug in enableTabLayout() enhancement