cocoa bug fix