fix entropy errors