fix activeness safety check when unpatching