fix the makeEPub method