fix misplaced display attributes