Fixed missing path check