Fixed some Kassa Server bugs.