fixed bug where destination var improperly set.