Fixed small thing in rendering routine