fixing closed operation