restore invalid address function
restore invalid address function