Fix releases diff number error and port_a undefined errors