some fixes for pjax