Fix not setting rendering color causing undefined behavior