fixed a bug in close_work