Fixed typo in serial attachment saving function