fix file expansion