fixed a bug in the contacts controller