Fixed permission scripts