fixed bug in view managers