Fix overdim issue in non-buffered rendering mode