Applies some minor bug fixes.