fix some .profile errors