Fixed various bugs.
Bumped patch version.