Fixed errors runs open and close