fixed path from not being checked for null