Bugfixes in loadbalancer and chain