Fixed bug when no contact is specified