Fixed the temp folder seg fault error.