Fix: $name becomes null with -p