Fixing scope undefined on empty target.