fix to path generating