Fixed `$(..) is null` error on Mac