fix down function.