attachment module bug fix