little bug fixes in openclose driver