Finally fixed path null pointer bug when one input didn't exist