fixed bug in wallsmoothing