fix crash PATH from user selection (mac)