fix bug for osx ls