Fixed printing of if else blocks