fix bug of getting contact