xmile: fix conversion of dims