fix problem with up and down