fixes npe in abptr