fixed bug in wsmesh