Fix bug in rendering equation