Fix FRED compilation