bugfix on contact