corner case fixed