medical bugfixes