fix inactive responding to modified, fix trimming