fixed bug for By Size