Issue #258: Autoselect class in completion matches wrong class

Result:![](http://service.crazypanda.ru/v/clip2net/Z/d/t4LpM6E2ih.png)