Fixes the issue that failed to generate code from passed file.