Fixed some errors in the Unix environment