fixed keyerror self.path

Signed-off-by: tanji <nicholastanjerome@gmail.com>