Fixed a bug that enabled rendermax even when it was supposed to be off.