epub export permission fix