bugfix, closed not always