Fix bad interaction with pjax