Fix Ajax for by question