fix bug in osx_target