fixed one pointer warning