Fixed integer precision issue