fixed ajax problem, reason: scope mistake