fixed for osx

Change-Id: Icd4a3bba4240206083426f7b76562af4e83b8018