fixed bug in expand all