Fix pjax bugs.