bugfix for puts