Mesh fixing in Cocoa