fixed an error on cancelling open dict