attempt to fix jagged rendering