Fixed updateHubo
Fixed some dumb segfaults