Fixed a bug in validation of destination address