Fixed compile error in up/down