minor bug fix on genertate file path