fixing issue from mac osx