Fix for readablility and null ptr in runprog