fixed Contact declaration bug