fixed naming issue in close.