fixed inewresource datatype in tmap