Fixed several bugs related to support of bootstrap v3