ME: fixed close modal bug