Bug with creating an attachment (take 2)