Fix usage of undefined variable 'dest' for 'UP'