[bugfix]fix a protential bug