Fixed allowing contacts in some situations (2)

Refs #1155