+ fix a path bug.

Signed-off-by: Euhow <euhowzy@gmail.com>
+ fix a undefined index notice.

Signed-off-by: Euhow <euhowzy@gmail.com>