Fixed integer conversion issues.