fix memory leak on NSBox