Fixed path generation bug. (Fixes #10).