Adapted to some changes required by the latest Boostrap version.