Fix for #11: Invalid argument when using in Bootstrap Tabs