OSX Compatibility Fix