fix trace non-null error