fix a render error