fix mode logging when there is a target