minor fixes in contact