Fixed a bug caused by envp