Fixed the issue of invalid target file name

Fixed invalid target file name due to using default  project by pressing
key enter