fix white rendering bug