Misc. bug fixes.
Merge branch 'master' of https://github.com/Ruskiy69/Zenderer