Fixed bug in contact