Fixed expanding bug.