Fix legal positions for attributes