fix km-link issue and autocomplete when multiple is set to true.

Signed-off-by: Blaise Fonseca <blaisefonseca@hotmail.com>