Fixed a null ref exception in respiratory case.