Fixed bug: g_selected_prefix was never set, so return value of select service was wrong.