fixed closing command