The reason is following: updateUI is not called when UI is set. Current implementation can produce some errors...