fixed for Rails 4.1.5/Bootstrap 3.2.0 compatibility