bugfix attachment hash with mode