fix attachTo return value if successful