Fixed critical bug for unix systems