fix typo in attach function