BugFix: if statement crashed because target is an array