Fixed integer bug