Fix tern auto-complete