fixed rendering encoding problem