fix stalling process