fix in processedkws, did not take target into account