fix rendering bug on bottom-most /right-most position