fixed ajax call, the type must be a string type.