Fix puts method