bug fixes at adding contacts