fix rate ajax always return error bug