Fixed a problem with bad address error