typo in 'attchments' (missing second letter "a"), also on line 563 below