Fix compiler error in disabled code