fixed free all issue