#488 more bugfixing in similarity server