sugarClient bugfixes