fixed rendering issues near extreme border