shrink metadata size after file size retrieved..
Merge branch 'dev'

fixed crash on mac...