bugfix for phone query