Fixed #511. Bootstrap 3 fixes