fixed double appending of gz