initialization of contacts bug fixing