Fixed crashing../fixed permissions