fixing bad permissions