Fixed Gmail contact restricting

Closes #1336