fix on close