Various bugfixes. Check CHANGELOG.md