fix potiential NPE