fixed bug in multiresolution