fix returncode