Fixed many krazy2-reported issues.