fix bash_profile array access