Fixing bugs occuring in Apple OS X