fixed bug in wl