fix file resize