removing invalid argument from attachment creation