fix get ppm when code is null