Fix a problem because of using the stderr name on wrong place