Small bug on close.