fix corner case