Fixed compilation error handling