fixed ajax bottleneck