Fixed OSXAdapter bug