fixed bug in close_wlk