Fixed code issues.