fix funky permissions