fix output filepath calcuation bug