fixed error on contract accept redirect