fixed a bug introduced by turbolinks