fixing data width declaration in template