fix for ajax routes