patcher bugfixes