Fix bugs in `up` plugin