Fixes file-permissions