Fix compiler error in hanging app