fix logic error in close hole