fixed sys exit