Fixed integer division error