Fix #1 to work around the pjax replacing