fixed ajaxify bug introduced in last commit