Fixed crash on missing contacts