Bugg fix file checkfile permissions