bugfix in up,down