fix invalid address error