attachdata compilation fix