fix memory allocate issue