Fixed puts bug