Fixed bug in destination class.