fixed the close button for blackBox