fixed null adapter crash