Fix problem with collapse if bootstrap has been called.