fix id problem with pending contacts
Merged 'dev'.
fix id problem at pending contacts